package proxy.statics;

import proxy.Computer;

/**
 * @author ZhuQi
 * @ClassName MackBookProxy
 * @Date 2022/8/19 15:12
 * @Version 1.0
 * @Description 苹果电脑代理累
 */
public class MackBookProxyImpl implements Computer {

    private Computer computer;

    public MackBookProxyImpl(Computer computer) {
        this.computer = computer;
    }

    /**
     * 获取电脑品牌名
     *
     * @return name
     */
    @Override
    public String getBrandName() {
        System.out.println("proxy before");
        System.out.println(computer.getBrandName());
        System.out.println("proxy after");
        return computer.getBrandName();
    }
}
